package com.houtai.dao;

import com.houtai.bean.TdWikiPraise;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface TdWikiPraiseDao {
    /**
     * @Purpose:    添加点赞
     * @param:      TdWikiPraise
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     void
     */
    void insertTdWikiPraise(TdWikiPraise TdWikiPraise);
 
    /**
     * @Purpose   查找点赞
     * @param     wiki_id
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    TdWikiPraise
     */
    TdWikiPraise findTdWikiPraise(@Param("user_id") int user_id, @Param("wiki_id") int wiki_id);
    /**
     * @Purpose:    更新点赞
     * @param:      TdWikiPraise
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     void
     */
    void updateTdWikiPraise(TdWikiPraise TdWikiPraise);
}
